package projetjee

class Relationship {
	
	String name
	User createur
	static hasMany = [members: User, subscribers: User]
	static belongsTo = User
	
	static constraints = {
		name blank: false
		createur blank: false
	}
	
	static mapping = {
		// we can't have a table called relation
		table 'relation_'
		subscribers joinTable: 'user_relation_s'
	}
}
